<?php
	include "globals.php";
	include "lib/amfphp/core/amf/app/Gateway.php";
	$servicesPath = 'classes/';
	$voPath = 'vo/';
	$gateway = new Gateway();
	$gateway->setClassPath($servicesPath);
	$gateway->setClassMappingsPath($voPath); 
	$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
	$gateway->setErrorHandling(E_ALL ^ E_NOTICE);
	if(PRODUCTION_SERVER)
	{
		$gateway->disableDebug();
		$gateway->disableStandalonePlayer();
	}
	//$gateway->logIncomingMessages('in/');
	//$gateway->logOutgoingMessages('out/');
	//$gateway->disableNativeExtension();
	$gateway->enableGzipCompression(25*1024);
	$gateway->service();
